﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="S7.Windows.Orders.AddAnOrder"
    Title="Add An Order" Height="600" Width="1200" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18" Loaded="Window_Loaded" mc:Ignorable="d">
	<Grid>
		<Grid Margin="8,8,0,8" HorizontalAlignment="Left" Width="244.206">
			<Label Content="Categories" HorizontalAlignment="Center" VerticalAlignment="Top"/>
			<ListBox x:Name="lbCategories" SelectionChanged="lbCategories_SelectionChanged" Margin="0,23.94,0,0" d:IsLocked="True"/>
		</Grid>
		<Grid Margin="256.206,8,370.69,8" d:LayoutOverrides="HorizontalAlignment, GridBox">
			<Label HorizontalAlignment="Center" Content="Menu Items" VerticalAlignment="Top"/>
			    		<dg:DataGrid x:Name="lbMenuItems" Background="#FF333333" AutoGenerateColumns="False" Margin="0,40,0,0" IsReadOnly="True" MouseDoubleClick="lbMenuItems_MouseDoubleClick">
    			<dg:DataGrid.Columns>
    				<dg:DataGridTemplateColumn Header="Image">
    					<dg:DataGridTemplateColumn.CellTemplate>
    						<DataTemplate>
    							<Grid>
    								<Image Source="{Binding Picture}" Width="64" Height="64" Stretch="UniformToFill"/>
    							</Grid>
    						</DataTemplate>
    					</dg:DataGridTemplateColumn.CellTemplate>
    				</dg:DataGridTemplateColumn>
    				<dg:DataGridTextColumn Header="Name" Binding="{Binding MenuItemName}"/>
    				<dg:DataGridTextColumn Header="Price" Binding="{Binding MenuItemPrice}"/>
    				<dg:DataGridTextColumn Header="Thumbs Up" Binding="{Binding ThumbsUp}"/>
    				<dg:DataGridTextColumn Header="Thumbs Down" Binding="{Binding ThumbsDown}"/>
    				<dg:DataGridTextColumn Header="Description" Binding="{Binding MenuItemDescription}"/>
    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
		</Grid>
		<Grid Margin="0,16,112,8" HorizontalAlignment="Right" Width="254.69" d:LayoutOverrides="HorizontalAlignment">
			<Label HorizontalAlignment="Center" Content="Selected Items" VerticalAlignment="Top"/>
			<ListBox x:Name="lbSelectedItem" Margin="0,27.94,0,0"/>
		</Grid>
		<StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right">
			<Button x:Name="btnSubmit" HorizontalAlignment="Right" Margin="0,0,8,24" Width="100" Content="Submit" Click="btnSubmit_Click"/>
			<Button x:Name="btnCancel" HorizontalAlignment="Right" Margin="0,0,8,24" Width="100" Content="Cancel" Click="btnCancel_Click"/>
		</StackPanel>
	</Grid>
</Window>
